package com.briup.smartcity_group1.web.controller.auth;

import com.briup.smartcity_group1.bean.basic.BaseLog;
import com.briup.smartcity_group1.consts.BeanNameConsts;
import com.briup.smartcity_group1.service.IBaseLogService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author congee(congee02 @ 163.com)
 * @date 1/4/2023 8:54 PM
 */
@RestController
@RequestMapping(BeanNameConsts.BASE_LOG)
public class BaseLogController {

    @Autowired
    private IBaseLogService service;

    @GetMapping("page")
    public PageInfo<BaseLog> findByPage(@RequestParam(required = true) int pageNum,
                                        @RequestParam(required = true) int pageSize) {
        return service.findByPage(pageNum, pageSize);
    }

}
